package org.jeecg.modules.system.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.system.entity.Notice;
import org.jeecg.modules.system.entity.OaLinkmanNotice;
import org.jeecg.modules.system.vo.JournalVO;
import org.jeecg.modules.system.vo.ReportWeekVO;
import org.jeecg.modules.system.vo.SystemMsgRequestVO;

import java.util.List;

/**
 * @Description: 推送
 * @Author: jeecg-boot
 * @Date:   2020-02-23
 * @Version: V1.0
 */
public interface INoticeService extends IService<Notice> {

    List<Notice> findUnReads(String userId);

    List<Notice> findAllReads(String userId);

    int findUnreadsByType(String userId, String msgType);

    IPage<Notice> selectSqlList(Page<Notice> page, SystemMsgRequestVO msgRequestVO);

    JournalVO getJournalById(String journalId);

    ReportWeekVO getReportWeekById(String reportWeekId);
}
